package geant;

import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;

public class MiModelodeTabla extends AbstractTableModel {

	private String[] columnNames = {"Codigo","Nombre","Stock"};
	
	
	private Object[][] data = {
			{"i59020491","mario","34"},
			{"i59020491","juan","24"},
			{"i59020491","susana","194"},
			{"i59020491","susana","194"},
			{"i59020491","susana","194"},
			{"i59020491","susana","194"},
	};

	 public int getColumnCount() {
         return columnNames.length;
     }

     public int getRowCount() {
         return data.length;
     }

     public String getColumnName(int col) {
         return columnNames[col];
     }

     public Object getValueAt(int row, int col) {
         return data[row][col];
     }
     
     public void add(){
    	 
     }
}
